import callApi from '../utils/request';
import {
  API_EXCEPTION_PAY_STATION,
  API_EXCEPTION_PAY,
  API_PAY_MODE_LIST,
  API_PREPAY,
  API_REFUEL,
  API_CAL_MONEY,
} from '../constants/api';

export function calMoney(params) {
  return callApi({
    api: API_CAL_MONEY,
    params,
  });
}


export function genOrder(params) {
  return callApi({
    api: API_REFUEL,
    params,
  });
}


export function prePay(params) {
  return callApi({
    api: API_PREPAY,
    params,
  });
}


export function queryPayMode(params) {
  return callApi({
    api: API_PAY_MODE_LIST,
    params,
  });
}

export function queryExceptionPayStation(params) {
  return callApi({
    api: API_EXCEPTION_PAY_STATION,
    params,
    // method: 'GET',
  });
}

export function exceptionPay(params) {
  return callApi({
    api: API_EXCEPTION_PAY,
    params,
  });
}
